﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WebSelfHost.Web
{
    /// <summary>
    /// 配置文件
    /// </summary>
    public class Configs
    {
        /// <summary>
        /// 数据库连接字符串
        /// </summary>
        public string DBConnectStr { get; set; }

        /// <summary>
        /// 数据库类型
        /// </summary>
        public string DBType { get; set; }
        /// <summary>
        /// 网页端端口号
        /// </summary>
        public int HttpPort { get; set; }

        /// <summary>
        /// 网页端软件名
        /// </summary>
        public string WebSoftwareName { get; set; }

        /// <summary>
        /// 日志所在根目录
        /// </summary>
        public string LogBasePath { get; set; }

        /// <summary>
        /// Info类型日志的目录 LogBasePath+InfoLogPath
        /// </summary>
        public string InfoLogPath { get; set; }

        /// <summary>
        /// Error类型日志的目录 LogBasePath+ErrorLogPath
        /// </summary>
        public string ErrorLogPath { get; set; }

        /// <summary>
        /// Operate类型日志的目录  LogBasePath+OperateLogPath
        /// </summary>
        public string OperateLogPath { get; set; }


        /// <summary>
        /// 日志文件清理周期
        /// </summary>
        public int LogOutDateDays { get; set; }


        public int SessionTimeout { get; set; }

        private bool _debug = false;
        /// <summary>
        /// 是否调试模式，调试模式将会输出日志
        /// </summary>
        public bool Debug { get { return _debug; } set { _debug = value; } }


    }
}
